package com.example.sxt_practise.GOF23.composite.filekillvirus;

/**
 * @author gaofeng
 * @date 2022年05月23日 21:29
 */
public class Client {
    public static void main(String[] args) {
        ImageFile imageFile = new ImageFile("高额方的大头虾.jpg") ;
        imageFile.killVirus();

        Folder folder = new Folder("My Favoriate") ;
        folder.add(imageFile);
        folder.add(new TextFile("我的.txt"));
        folder.add(new VideoFile("dian.avi"));
        Folder folder1 = new Folder("dian ying") ;
        folder1.add(new VideoFile("yui.avi")) ;
        folder.add(folder1);
        folder.killVirus();
    }
}
